﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CodeGenerator.Interface;
using System.Data.SqlClient;

namespace CodeGenerator.Control
{
    class CConnSqlServer2005:IConn
    {
        #region IConn 成员
        /// <summary>
        /// 尝试连接到数据库
        /// </summary>
        /// <param name="str">数据库连接字符串</param>
        /// <returns>数据库连接对象</returns>
        public object GetConnObj(string str)
        {
            return new SqlConnection(str);
        }

        #endregion
    }
}
